<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="author" content="Brant Liu">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <title>Gantt Component Demos</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="assets/css/jq-gantt.css">
    <style type="text/css">
        html, body {
            margin: 0;
            padding: 0;
        }

        body {
            padding: 50px;
            /*overflow: hidden;*/
        }

        #gantt-demo .gantt-grid .gantt-row .gantt-cell:nth-child(1) {
            width: 60px;
        }
        #gantt-demo .gantt-grid .gantt-row .gantt-cell:nth-child(2) {
            width: 140px;
        }
        #gantt-demo .gantt-grid .gantt-row .gantt-cell:nth-child(3) {
            width: 110px;
        }
        #gantt-demo .gantt-grid .gantt-row .gantt-cell:nth-child(4) {
            width: 90px;
        }
    </style>
</head>
<body>
<p>Gantt Component Demo:</p>
<div id="gantt"></div>

<p>Gantt HTML Structure:</p>
<div id="gantt-demo">
    <div class="gantt-layout" style="height: 400px;">
        <div class="gantt-wrapper">
            <div class="gantt-grid">
                <div class="gantt-content">
                    <div class="gantt-header">
                        <div class="gantt-row">
                            <div class="gantt-cell"><span>#</span></div>
                            <div class="gantt-cell"><span>任务描述</span></div>
                            <div class="gantt-cell"><span>计划时间</span></div>
                            <div class="gantt-cell"><span>计划天数</span></div>
                        </div>
                    </div>
                    <div class="gantt-data">
                        <div class="gantt-row">
                            <div class="gantt-cell"><span>1</span></div>
                            <div class="gantt-cell"><span>任务描述1</span></div>
                            <div class="gantt-cell"><span>2020-06-13</span></div>
                            <div class="gantt-cell"><span>3</span></div>
                        </div>
                    </div>
                </div>
                <div class="gantt-x-scroll">
                    <div class="gantt-wrapper" style="width: 400px;">
                        <div class="gantt-content" style="width: 600px;"></div>
                    </div>
                </div>
            </div>
            <div class="gantt-resizer">
                <div class="gantt-content"></div>
            </div>
            <div class="gantt-task">
                <div class="gantt-content">
                    <div class="gantt-header">
                        <div class="gantt-row">
                            <div class="gantt-cell"><span>1</span></div>
                            <div class="gantt-cell"><span>2</span></div>
                            <div class="gantt-cell"><span>3</span></div>
                            <div class="gantt-cell"><span>4</span></div>
                            <div class="gantt-cell"><span>5</span></div>
                            <div class="gantt-cell"><span>6</span></div>
                            <div class="gantt-cell"><span>7</span></div>
                            <div class="gantt-cell"><span>8</span></div>
                            <div class="gantt-cell"><span>9</span></div>
                            <div class="gantt-cell"><span>10</span></div>
                            <div class="gantt-cell"><span>11</span></div>
                            <div class="gantt-cell"><span>12</span></div>
                            <div class="gantt-cell"><span>13</span></div>
                            <div class="gantt-cell"><span>14</span></div>
                            <div class="gantt-cell"><span>15</span></div>
                            <div class="gantt-cell"><span>16</span></div>
                            <div class="gantt-cell"><span>17</span></div>
                            <div class="gantt-cell"><span>18</span></div>
                            <div class="gantt-cell"><span>19</span></div>
                            <div class="gantt-cell"><span>20</span></div>
                            <div class="gantt-cell"><span>21</span></div>
                            <div class="gantt-cell"><span>22</span></div>
                            <div class="gantt-cell"><span>23</span></div>
                            <div class="gantt-cell"><span>24</span></div>
                            <div class="gantt-cell"><span>25</span></div>
                            <div class="gantt-cell"><span>26</span></div>
                            <div class="gantt-cell"><span>27</span></div>
                            <div class="gantt-cell"><span>28</span></div>
                            <div class="gantt-cell"><span>29</span></div>
                            <div class="gantt-cell"><span>30</span></div>
                            <div class="gantt-cell"><span>1</span></div>
                            <div class="gantt-cell"><span>2</span></div>
                            <div class="gantt-cell"><span>3</span></div>
                            <div class="gantt-cell"><span>4</span></div>
                            <div class="gantt-cell"><span>5</span></div>
                            <div class="gantt-cell"><span>6</span></div>
                            <div class="gantt-cell"><span>7</span></div>
                            <div class="gantt-cell"><span>8</span></div>
                            <div class="gantt-cell"><span>9</span></div>
                            <div class="gantt-cell"><span>10</span></div>
                            <div class="gantt-cell"><span>11</span></div>
                            <div class="gantt-cell"><span>12</span></div>
                            <div class="gantt-cell"><span>13</span></div>
                            <div class="gantt-cell"><span>14</span></div>
                        </div>
                    </div>
                    <div class="gantt-data">
                        <div class="gantt-row">
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                            <div class="gantt-cell"></div>
                        </div>
                    </div>
                </div>
                <div class="gantt-x-scroll">
                    <div class="gantt-wrapper" style="width: 1417px;">
                        <div class="gantt-content" style="width: 1600px;"></div>
                    </div>
                </div>
            </div>
            <div class="gantt-y-scroll">
                <div class="gantt-wrapper" style="margin-top: 32px; height: 368px;">
                    <div class="gantt-content" style="height: 500px;"></div>
                </div>
            </div>
            <div class="gantt-loader"><div class="gantt-loader-circle"></div></div>
        </div>
    </div>
</div>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/jq.gantt-1.0.3.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        var inst = Gantt.init('#gantt', {
            //gridWidth: .5
        });

        window.app = inst;
    })
</script>
</body>
</html>